import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Favorite } from './entities/favorite.entity'
import { History } from './entities/history.entity'
import { MeController } from './me.controller'
import { Profile } from './entities/profile.entity'
import { ProfilesService } from './profiles.service'
import { User } from './entities/user.entity'
import { UsersController } from './users.controller'
import { UsersService } from './users.service'
import { Address } from './entities/address.entity'

@Module({
  imports: [
    TypeOrmModule.forFeature([User, Profile, Favorite, History, Address])
  ],
  providers: [UsersService, ProfilesService],
  controllers: [MeController, UsersController],
  exports: [UsersService, ProfilesService, TypeOrmModule]
})
export class UsersModule {}
